package com.freddy.sqlite.main.model;

/**
 * Created by Freddy on 2015/12/3.
 * chenshichao@outlook.com
 */
public class User {

    private long _id;
    private String userName;
    private String phoneNumber;
    private String sex;
    private String birthday;
    private String province;
    private String city;
    private String testMigrate;

    public long get_id() {
        return _id;
    }

    public void set_id(long _id) {
        this._id = _id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getTestMigrate() {
        return testMigrate;
    }

    public void setTestMigrate(String testMigrate) {
        this.testMigrate = testMigrate;
    }

    public User() {
    }

    @Override
    public String toString() {
        StringBuilder userInfo = new StringBuilder();
        userInfo.append("用户id：" + this._id + "\n");
        userInfo.append("用户名：" + this.userName + "\n");
        userInfo.append("手机号：" + this.phoneNumber + "\n");
        userInfo.append("性  别：" + this.sex + "\n");
        userInfo.append("生  日：" + this.birthday + "\n");
        userInfo.append("所在省：" + this.province + "\n");
        userInfo.append("所在市：" + this.city + "\n");
        userInfo.append("数据库迁移:" + this.testMigrate);
        return userInfo.toString();
    }
}
